package org.project.single.pojo.vo.dict;

import lombok.Getter;
import lombok.Setter;
import org.project.single.pojo.po.SysDictType;
import org.stone.project.baseCommon.service.Insert;
import org.stone.project.baseCommon.service.Update;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

@Getter
@Setter
public class DictDataEditVo {
    @NotEmpty(message = "不为空",groups = Update.class)
    private String id;

    /**
     * 父code
     * {@link SysDictType#getCode()}
     */
    @NotEmpty(message = "不为空",groups = Insert.class)
    private String parentCode;

    /**
     * 编码
     */
    @NotEmpty(message = "不为空",groups = Insert.class)
    private String keyCode;

    /**
     * 字典名
     */
    private String keyName;

    /**
     * 字典值
     */
    private String keyValue;

    /**
     * 字典描述
     */
    private String describStr;

    /**
     * 字典扩展信息
     */
    private Map<String,Object> extInfo;
}
